import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home/home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/search',
    name: 'search',   
    component: () => import( '../views/search/search.vue')
  },
  {
    path: '/login',
    name: 'login',   
    component: () => import( '../views/login/login.vue')
  },
  {
    path: '/kind',
    name: 'kind',   
    component: () => import( '../views/kind/kind.vue')
  },
  {
    path: '/mi',
    name: 'mi',   
    component: () => import( '../views/mi/mi.vue')
  },
  {
    path: '/shop',
    name: 'shop',   
    component: () => import( '../views/shop/shop.vue')
  },
  {
    path: '/wo',
    name: 'wo',   
    component: () => import( '../views/wo/wo.vue')
  },
  {
    path: '/kong',
    name: 'kong',   
    component: () => import( '../views/kong/kong.vue')
  },
  {
    path: '/detail',
    name: 'detail',   
    component: () => import( '../views/detail/detail.vue')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
